package net.inxweb.bluemeerkat.web.rest.client;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import net.inxweb.bluemeerkat.domain.model.glossary.Attribute;
import net.inxweb.bluemeerkat.domain.model.glossary.GlossaryType;

import org.jboss.resteasy.annotations.Form;
import org.jboss.resteasy.client.ClientResponse;

public interface GlossaryClient {
	@GET
    @Path("glossary/type")
    @Produces(MediaType.APPLICATION_JSON)
    ClientResponse<GlossaryType> findAllGlossaryType();

    @GET
    @Path("glossary/type/{id}")
    @Produces(MediaType.APPLICATION_JSON)
    ClientResponse<GlossaryType> findGlossaryType(@PathParam("id") Long id);
    
    @POST
    @Path("glossary/type")
    @Consumes(MediaType.APPLICATION_JSON) 
    @Produces(MediaType.APPLICATION_JSON) 
    ClientResponse<GlossaryType> createGlossaryType(@Form GlossaryType glossaryType);
}
